package com.tcs.es.util;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;

/**
 * @ClassName : EsJavaApiUtil
 * @Author : 神经刀
 * @Date : 2019/6/7 : 8:47
 * @Version : 1.0
 */
public class EsJavaApiUtil {

    private EsJavaApiUtil(){};

    public static RestHighLevelClient getClient() {
        RestHighLevelClient client = new RestHighLevelClient(
                RestClient.builder(new HttpHost("192.168.100.24", 9200, "http")));
        return client;
    }
}
